# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2021年08月24日
"""
from docx import *
from docx.shared import Cm

file = Document()
sec1 = file.sections[0]
ht = sec1.page_height.cm
wh = sec1.page_width.cm
print(f'高{ht},宽{wh}')
sec1.page_height = Cm(29.7)
sec1.page_width = Cm(21)

file.save('./练习/23结果01.docx')
